import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { Observable } from 'rxjs';

@Injectable({
  providedIn: 'root'
})
export class WechatBotService {

  constructor(private http: HttpClient) { }

  login(): Observable<any> {
    return this.http.get<any>('/wechat-bot/login');
  }

  logout(): Observable<void> {
    return this.http.get<void>('/wechat-bot/logout');
  }
  checkAlive(): Observable<boolean> {
    return this.http.get<boolean>('/wechat-bot/alive');
  }
}
